package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Travel;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TravelRepository extends MongoRepository <Travel ,String> {
    // 通过目的地查询相关游记
    List<Travel> findByDestName(String keyword);
}
